package com.atguigu.boot;

import com.atguigu.boot.entity.Student;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

@SpringBootApplication

// 对 Student 类上面使用 @ConfigurationProperties 进行注册
@EnableConfigurationProperties(value = Student.class)
public class ConfigMainType {

    public static void main(String[] args) {
        SpringApplication.run(ConfigMainType.class, args);
    }

}
